home *** CD-ROM | disk | FTP | other *** search
- NAME
- shar - create shell archive on Atari ST for extraction by
- /bin/sh (Unix) or with shar itself
-
- SYNOPSIS
- shar [[-eo] archive] [-abcmsuv] [-p prefix] [-d delim]
- [files >archive]
-
- DESCRIPTION
- shar prints its input files with special command lines
- around them to be used by the Unix Bourne shell, /bin/sh, or
- shar itself to extract the files later. The output can be
- filtered through the shell to recreate copies of the
- original files.
-
- shar allows directories to be named, and shar prints the
- necessary commands (mkdir & cd) to create new directories
- and fill them. shar will not allow existing files to be
- over-written if the shell archive is extracted with the
- Bourne Shell; such files must be removed by the user.
-
- OPTIONS
- -a All the options. The options: -v -c -b -p XX are implied.
-
- -b Extract files into basenames so that files with absolute
- path names are put into the current directory. This
- option has strange effects when directories are
- archived.
-
- -c Check file size on extraction by counting characters. An
- error message is reported to the person doing the
- extraction if the sizes don't match. One reason why the
- sizes may not match is that shar will append a newline
- to complete incomplete last lines; shar prints a
- message that mentions added newlines. Another reason
- why the sizes may not match is that some network mail
- programs remove non-whitespace control characters. shar
- prints a message that mentions control characters to
- the extractor.
-
- -d Use this as the ``end of file'' delimiter instead of the
- default. The only reason to change it is if you suspect
- a file contains the default delimiter: SHAR_EOF.
-
- -e Extract a shell archive. Files stored within an existing
- shell archive are written to disk as seperate files.
- Directories are created as neccessary. Already existing
- files will not be overwritten. Options -c, -m or -v
- specified upon creation of the shell archive are not
- regarded.
-
- -m Reset the exact protection modes of files when they are
- extracted (using the chmod program). By default, the
- extractor's default file modes are used, and executable
- files (e.g., shell scripts) are made executable.
-
- -o Extract a shell archive with overwrite. Similar to the -e
- option but already existing files will be overwritten.
-
- -p Use this as the prefix to each line of the archived
- files. This is to make sure that special characters at
- the start of lines are not eaten up by programs like
- mailers. If this option is used, the files will be
- extracted with the stream editor sed rather than cat so
- it is more efficient and portable to avoid setting the
- prefix, though perhaps less safe if you don't know what
- is in the files.
-
- -s Silent running. All checking and extra output is inhibi-
- ted.
-
- -u Archive the input files with the uuencode format for
- later extraction with uudecode. This will allow you to
- send files with control characters in them, but will
- slow down the extracting. You must be sure that the
- receiving party has access to uudecode.
-
- -v Print verbose feedback messages about what shar is doing
- to be printed during extraction with the Bourne Shell.
- Sizes of plain files are echoed to allow a simple
- validity check.
-
- AUTHOR
- Rainer Klute (highly based on Unix shar by Gary Perlman and
- ST shar by J. Altstadt.
-
- LIMITATIONS
- The extraction algorithm is not too clever. It only recogni-
- zes filenames and the file contents as such. So shar does
- not regard any of the options -c, -m or -v if they were
- specified upon creation of the archive.
-
-